package com.amiba.crm.admin.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.util.List;

/**
 * 全国省市区街道
 * @author Hezhi Hua
 * 2019-08-09 10:38:09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_region")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysRegion extends Model<SysRegion> {
private static final long serialVersionUID = 1L;

    /**
   * 
   */
    @TableId
    private Integer id;
    /**
   * 
   */
    private Integer code;
    /**
   * 
   */
    private Integer parentid;
    /**
   * 
   */
    private String name;
    /**
   * 
   */
    private Integer level;


    @TableField(exist = false)
    private List<SysRegion> list;


}
